package io.sage.modules.basics.dao;

import java.util.List;
import java.util.Map;
import org.apache.ibatis.annotations.Param;
import io.sage.modules.basics.entity.BWarehouse;
import io.sage.modules.basics.entity.BWarehouseExample;

/**
 * 仓房dao
 * @author xjh
 *
 */
public interface BWarehouseMapper {
    int countByExample(BWarehouseExample example);

    int deleteByExample(BWarehouseExample example);

    int deleteByPrimaryKey(Integer id);

    int insert(BWarehouse record);

    int insertSelective(BWarehouse record);

    List<BWarehouse> selectByExample(BWarehouseExample example);

    BWarehouse selectByPrimaryKey(Integer id);

    int updateByExampleSelective(@Param("record") BWarehouse record, @Param("example") BWarehouseExample example);

    int updateByExample(@Param("record") BWarehouse record, @Param("example") BWarehouseExample example);

    int updateByPrimaryKeySelective(BWarehouse record);

    int updateByPrimaryKey(BWarehouse record);
    /**
     * 仓库列表
     * @param params
     * @return
     */
    List<BWarehouse> selectWarehouseList(Map<String, Object> params);
    /**
     * 批量删除
     * @param ids
     * @return
     */
	int deleteBatchIds(Integer[] ids);

    int updateCodeByPrimaryKey(BWarehouse warehouse);

    List<BWarehouse> selectIsUse(Integer[] ids);

    Integer getIsCheck(Integer id);

    List<Map<String, Object>> selectAntennaByLikeDeptNo(@Param("dept_no")String deptNoId);

    List<BWarehouse> selectByGoodsIds(List<Integer> list);
}